package Nio;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Collectors;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.01.20.12.46
 */
public class Nio2 {
    public static void main(String[] args) throws IOException {
        String info=Files.newBufferedReader(Paths.get("src.txt")).lines().collect(Collectors.joining("\n"));
        System.out.println(info);
    }
}
